.prompt-preview {
  width: 100%;
}

.variable-highlights {
  padding: 12px;
  background-color: #f5f7fa;
  border-radius: 4px;
}

.preview-content {
  min-height: 300px;
}

.prompt-text {
  background-color: #f9f9f9;
  padding: 16px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #333;
}

.conversation-preview {
  background-color: #fafafa;
  border-radius: 8px;
  padding: 16px;
}

.message {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background-color: white;
}

.message:last-child {
  margin-bottom: 0;
}

.system-message {
  border-left: 3px solid #722ed1;
}

.user-message {
  border-left: 3px solid #1890ff;
}

.message pre {
  margin: 8px 0 0 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #333;
}

.test-output {
  padding: 16px;
  background-color: #f0f2f5;
  border-radius: 8px;
}

.output-text {
  background-color: white;
  padding: 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 12px 0 0 0;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e8e8e8;
}

/* 变量高亮 */
.prompt-text .variable-highlight {
  background-color: #e6f7ff;
  padding: 2px 4px;
  border-radius: 2px;
  color: #1890ff;
  font-weight: 500;
}

/* 加载动画 */
.prompt-preview .ant-spin-nested-loading {
  min-height: 100px;
}

/* 响应式布局 */
@media (max-width: 992px) {
  .prompt-preview .ant-col-lg-10,
  .prompt-preview .ant-col-lg-14 {
    margin-bottom: 16px;
  }
  
  .preview-content {
    min-height: 200px;
  }
}

/* 滚动条样式 */
.output-text::-webkit-scrollbar,
.prompt-text::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.output-text::-webkit-scrollbar-thumb,
.prompt-text::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 4px;
}

.output-text::-webkit-scrollbar-thumb:hover,
.prompt-text::-webkit-scrollbar-thumb:hover {
  background-color: #bfbfbf;
}

.output-text::-webkit-scrollbar-track,
.prompt-text::-webkit-scrollbar-track {
  background-color: #f0f0f0;
  border-radius: 4px;
}